class reverse
{
// reverse a array values
public static int[] reverse(int[] list)
{
int[] result = new int[list.length];
int array[i],array[j];

for(int i=0,j=result.length-1; i<list.length;i++,j--)
{
result[j] = list[i];
}
return result;
}
}
